﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Business_Do.aspx.cs" Inherits="Business_Business_Do" MasterPageFile="../SelectMasterPage.master" %>

<%@ Import Namespace="Common" %>
<%@ Import Namespace="DAL" %>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <script type="text/javascript">
        function CheckClientValidate() {

            Page_ClientValidate();
            if (Page_IsValid) {
                return true;
            } else {
                return false;
            }
        }
        function SelectFinish() {
            if ($get("ctl00_ContentPlaceHolder1_Status_1").checked || $get("ctl00_ContentPlaceHolder1_Status_2").checked)
                return true;
            //return confirm("选中此状态后不能更改，是否继续？");

        }
    </script>

    <script type="text/javascript">
        function CV1(source, args) {

            var date1 = document.getElementById('<%= TechOneD.ClientID %>');
            var date2 = document.getElementById('<%= TechTwoD.ClientID %>');

            var h1 = document.getElementById('<%= TechOneT_H.ClientID %>');
            var h2 = document.getElementById('<%= TechTwoT_H.ClientID %>');

            var m1 = document.getElementById('<%= TechOneT_M.ClientID %>');
            var m2 = document.getElementById('<%= TechTwoT_M.ClientID %>');

            var t1 = new Date(date1.value.replace(/-/g, "/") + ' ' + h1.value + ':' + m1.value + ':00');
            var t2 = new Date(date2.value.replace(/-/g, "/") + ' ' + h2.value + ':' + m2.value + ':00');

            if (t1 >= t2)
            { args.IsValid = false; }
            else
            { args.IsValid = true; }
        }
        function CV(source, args) {

            var date1 = document.getElementById('<%= TechFiveTimeD.ClientID %>');
            var date2 = document.getElementById('<%= TechSixTimeD.ClientID %>');

            var h1 = document.getElementById('<%= TechFiveTimeT_H.ClientID %>');
            var h2 = document.getElementById('<%= TechSixTimeT_H.ClientID %>');

            var m1 = document.getElementById('<%= TechFiveTimeT_M.ClientID %>');
            var m2 = document.getElementById('<%= TechSixTimeT_M.ClientID %>');

            var t1 = new Date(date1.value.replace(/-/g, "/") + ' ' + h1.value + ':' + m1.value + ':00');
            var t2 = new Date(date2.value.replace(/-/g, "/") + ' ' + h2.value + ':' + m2.value + ':00');

            if (t1 >= t2)
            { args.IsValid = false; }
            else
            { args.IsValid = true; }
        }
    </script>

    <script type="text/javascript">
        //下限日期默认选中
        function setDefaultDate(obj) {
            if (obj.value != "") {
                try {
                    document.getElementById("<%= TechSixTimeD.ClientID %>").value = obj.value;
                }
                catch (err) { }
            }
        }
        function SetT(obj, clientid) {

            document.getElementById(clientid).value = obj.value;
        }
        //下限时间默认选中(时间相同,分钟+30)
        function SetT1(obj, clientid) {

            try {
                document.getElementById(clientid).value = obj.value;

                if (obj.value != "") {
                    var add_time = Add30M(document.getElementById('<%= TechFiveTimeT_H.ClientID %>').value, document.getElementById('<%= TechFiveTimeT_M.ClientID %>').value);
                    if (add_time != "") {
                        document.getElementById('<%= TechSixTimeT_H.ClientID %>').value = getH(add_time.split(":")[0]);
                        document.getElementById('<%= TechSixTimeT_M.ClientID %>').value = getM(add_time.split(":")[1]);
                    }
                }
            }
            catch (err) { }
        }
    </script>

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td width="85%" valign="top">
                <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
                    <tr>
                        <td class="leftTd" valign="top">
                            <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center">
                                <tr>
                                    <td class="titleStyle">
                                        任务处理
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <table cellpadding="0" cellspacing="1" width="100%" border="0" style="background: #000066;">
                                <tr>
                                    <td class="leftContent">
                                        任务类型：
                                    </td>
                                    <td class="RightContent">
                                        <%= new News().GetClsName(news.ClsID) %>
                                    </td>
                                </tr>
                                <%  if (news.ClsID.Contains("4"))   //送/取服务
                                    { %>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        送/取：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.Fetch_FetchType%>
                                        -
                                        <%= News.GetFetchContent(news.Fetch_FetchType, Convert.ToInt32(news.Fetch_FetchID))%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        报价单号：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.Fetch_DanNum%>
                                    </td>
                                </tr>
                                <% } %>
                                <%  if (news.ClsID.Contains("6"))   //报价
                                    { %>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        物品：
                                    </td>
                                    <td class="RightContent">
                                        <asp:TextBox ID="Quote_StockName" runat="server" CssClass="face"></asp:TextBox>
                                        <asp:HiddenField ID="Quote_StockType" runat="server" />
                                        <asp:HiddenField ID="Quote_StockID" runat="server" />
                                        请选择：<a class="thickbox" href="../Stock/SelectStock.aspx?ParentID=<%= Quote_StockName.ClientID %>&ParentID1=<%= Quote_StockID.ClientID %>&KeepThis=true&TB_iframe=true&height=550&width=600" onclick="$('#' + '<%= Quote_StockType.ClientID %>').val('库存物品');">库存物品</a> / <a class="thickbox" href="../Stock/SelectWxStock.aspx?ParentID=<%= Quote_StockName.ClientID %>&ParentID1=<%= Quote_StockID.ClientID %>&KeepThis=true&TB_iframe=true&height=550&width=600" onclick="$('#' + '<%= Quote_StockType.ClientID %>').val('报修入库物品');">报修入库物品</a>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="请选择物品" ControlToValidate="Quote_StockName"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        是否报价：
                                    </td>
                                    <td class="RightContent">
                                        <asp:DropDownList ID="Quote_IsQuote" runat="server" AutoPostBack="True" OnSelectedIndexChanged="Quote_IsQuote_SelectedIndexChanged" CssClass="face">
                                            <asp:ListItem Value="未报价">未报价</asp:ListItem>
                                            <asp:ListItem Value="已报价">已报价</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        <asp:Label ID="LB_Quote_Price" runat="server" Text="价格：" Visible="false"></asp:Label>
                                    </td>
                                    <td class="RightContent">
                                        <asp:TextBox ID="Quote_Price" runat="server" Width="60px" CssClass="face"></asp:TextBox>
                                    </td>
                                </tr>
                                <% } %>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 5px;">
                                        预约描述：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.Content_Cus %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        指定技术人员：
                                    </td>
                                    <td class="RightContent">
                                        <%= new Account().GetAccountName(news.MUserKey)  %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        预约上限时间：
                                    </td>
                                    <td class="RightContent">
                                        日期:<asp:TextBox ID="TechOneD" runat="server" Width="70px" CssClass="face"></asp:TextBox>&nbsp; 小时:<asp:TextBox ID="TechOneT_H" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                        <select id="TechOneT_H_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechOneT_H.ClientID  %>');">
                                            <option value=""></option>
                                            <option value="06">06</option>
                                            <option value="07">07</option>
                                            <option value="08">08</option>
                                            <option value="09">09</option>
                                            <option value="10">10</option>
                                            <option value="11">11</option>
                                            <option value="12">12</option>
                                            <option value="13">13</option>
                                            <option value="14">14</option>
                                            <option value="15">15</option>
                                            <option value="16">16</option>
                                            <option value="17">17</option>
                                            <option value="18">18</option>
                                            <option value="19">19</option>
                                            <option value="20">20</option>
                                            <option value="21">21</option>
                                            <option value="22">22</option>
                                        </select>
                                        &nbsp;&nbsp;&nbsp;&nbsp;分钟:<asp:TextBox ID="TechOneT_M" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                        <select id="TechOneT_M_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechOneT_M.ClientID  %>');">
                                            <option value=""></option>
                                            <option value="00">00</option>
                                            <option value="05">05</option>
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                            <option value="25">25</option>
                                            <option value="30">30</option>
                                            <option value="35">35</option>
                                            <option value="40">40</option>
                                            <option value="45">45</option>
                                            <option value="50">50</option>
                                            <option value="55">55</option>
                                        </select>
                                        &nbsp;&nbsp;&nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TechOneD" Display="Dynamic" ErrorMessage="请选择上限日期"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TechOneT_H" Display="Dynamic" ErrorMessage="请选择下限小时"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TechOneT_M" Display="Dynamic" ErrorMessage="请选择下限分钟"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        预约下限时间：
                                    </td>
                                    <td class="RightContent">
                                        日期:<asp:TextBox ID="TechTwoD" runat="server" Width="70px" CssClass="face"></asp:TextBox>&nbsp; 小时:<asp:TextBox ID="TechTwoT_H" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                        <select id="TechTwoT_H_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechTwoT_H.ClientID  %>');">
                                            <option value=""></option>
                                            <option value="06">06</option>
                                            <option value="07">07</option>
                                            <option value="08">08</option>
                                            <option value="09">09</option>
                                            <option value="10">10</option>
                                            <option value="11">11</option>
                                            <option value="12">12</option>
                                            <option value="13">13</option>
                                            <option value="14">14</option>
                                            <option value="15">15</option>
                                            <option value="16">16</option>
                                            <option value="17">17</option>
                                            <option value="18">18</option>
                                            <option value="19">19</option>
                                            <option value="20">20</option>
                                            <option value="21">21</option>
                                            <option value="22">22</option>
                                        </select>
                                        &nbsp;&nbsp;&nbsp;&nbsp;分钟:<asp:TextBox ID="TechTwoT_M" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                        <select id="TechTwoT_M_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechTwoT_M.ClientID  %>');">
                                            <option value=""></option>
                                            <option value="00">00</option>
                                            <option value="05">05</option>
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option value="20">20</option>
                                            <option value="25">25</option>
                                            <option value="30">30</option>
                                            <option value="35">35</option>
                                            <option value="40">40</option>
                                            <option value="45">45</option>
                                            <option value="50">50</option>
                                            <option value="55">55</option>
                                        </select>
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="TechTwoD" Display="Dynamic" ErrorMessage="请选择下限日期"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="TechTwoT_H" Display="Dynamic" ErrorMessage="请选择下限小时"></asp:RequiredFieldValidator>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="TechTwoT_M" Display="Dynamic" ErrorMessage="请选择下限分钟"></asp:RequiredFieldValidator>
                                        <asp:CustomValidator ID="CustomValidator2" runat="server" ClientValidationFunction="CV1" ControlToValidate="TechTwoT_M" ErrorMessage="上限时间必须小于下限时间" ValidateEmptyText="True"></asp:CustomValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                       联系人姓名：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.UserName %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        报修人联系方式：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.UserNameTEL %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        协调备注：
                                    </td>
                                    <td class="RightContent">
                                        <%= news.Content_Scheduling %>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="leftContent">
                                        任务处理：
                                    </td>
                                    <td class="RightContent">
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <asp:RadioButtonList ID="Status" runat="server" RepeatDirection="Horizontal" OnTextChanged="Status_TextChanged" AutoPostBack="True">
                                                    <asp:ListItem Value="4">现在上门</asp:ListItem>
                                                    <%--<asp:ListItem Value="4">到客户处处理任务中</asp:ListItem>--%>
                                                    <asp:ListItem Value="5">任务未完成</asp:ListItem>
                                                    <asp:ListItem Value="6">任务已完成</asp:ListItem>
                                                </asp:RadioButtonList>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请选择处理状态" ControlToValidate="Status"></asp:RequiredFieldValidator><br>
                                                <table id="tb_Do" runat="server" visible="false" cellpadding="0" cellspacing="0" width="100%" border="0" align="center" style="background: #000066;">
                                                    <tr>
                                                        <td class="leftContent">
                                                            处理上限时间：
                                                        </td>
                                                        <td class="RightContent">
                                                            日期:<asp:TextBox ID="TechFiveTimeD" runat="server" Width="70px" CssClass="face" Text=""></asp:TextBox>&nbsp; 小时:<asp:TextBox ID="TechFiveTimeT_H" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                                            <select id="TechFiveTimeT_H_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechFiveTimeT_H.ClientID  %>');">
                                                                <option value=""></option>
                                                                <option value="06">06</option>
                                                                <option value="07">07</option>
                                                                <option value="08">08</option>
                                                                <option value="09">09</option>
                                                                <option value="10">10</option>
                                                                <option value="11">11</option>
                                                                <option value="12">12</option>
                                                                <option value="13">13</option>
                                                                <option value="14">14</option>
                                                                <option value="15">15</option>
                                                                <option value="16">16</option>
                                                                <option value="17">17</option>
                                                                <option value="18">18</option>
                                                                <option value="19">19</option>
                                                                <option value="20">20</option>
                                                                <option value="21">21</option>
                                                                <option value="22">22</option>
                                                            </select>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;分钟:<asp:TextBox ID="TechFiveTimeT_M" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                                            <select id="TechFiveTimeT_M_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT1(this,'<%=TechFiveTimeT_M.ClientID  %>');">
                                                                <option value=""></option>
                                                                <option value="00">00</option>
                                                                <option value="05">05</option>
                                                                <option value="10">10</option>
                                                                <option value="15">15</option>
                                                                <option value="20">20</option>
                                                                <option value="25">25</option>
                                                                <option value="30">30</option>
                                                                <option value="35">35</option>
                                                                <option value="40">40</option>
                                                                <option value="45">45</option>
                                                                <option value="50">50</option>
                                                                <option value="55">55</option>
                                                            </select>
                                                            <br>
                                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TechFiveTimeD" Display="Dynamic" ErrorMessage="请选择上限日期"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TechFiveTimeT_H" Display="Dynamic" ErrorMessage="请选择上限小时"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TechFiveTimeT_M" Display="Dynamic" ErrorMessage="请选择上限分钟"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="leftContent">
                                                            处理下限时间：
                                                        </td>
                                                        <td class="RightContent">
                                                            日期:<asp:TextBox ID="TechSixTimeD" runat="server" Width="70px" CssClass="face" Text=""></asp:TextBox>&nbsp; 小时:<asp:TextBox ID="TechSixTimeT_H" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                                            <select id="TechSixTimeT_H_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechSixTimeT_H.ClientID  %>');">
                                                                <option value=""></option>
                                                                <option value="06">06</option>
                                                                <option value="07">07</option>
                                                                <option value="08">08</option>
                                                                <option value="09">09</option>
                                                                <option value="10">10</option>
                                                                <option value="11">11</option>
                                                                <option value="12">12</option>
                                                                <option value="13">13</option>
                                                                <option value="14">14</option>
                                                                <option value="15">15</option>
                                                                <option value="16">16</option>
                                                                <option value="17">17</option>
                                                                <option value="18">18</option>
                                                                <option value="19">19</option>
                                                                <option value="20">20</option>
                                                                <option value="21">21</option>
                                                                <option value="22">22</option>
                                                            </select>
                                                            &nbsp;&nbsp;&nbsp;&nbsp;分钟:<asp:TextBox ID="TechSixTimeT_M" runat="server" Width="18px" CssClass="face"></asp:TextBox>
                                                            <select id="TechSixTimeT_M_sel" style="margin-left: -25px; position: absolute; clip: rect(auto 38px auto 22px);" onchange="SetT(this,'<%=TechSixTimeT_M.ClientID  %>');">
                                                                <option value=""></option>
                                                                <option value="00">00</option>
                                                                <option value="05">05</option>
                                                                <option value="10">10</option>
                                                                <option value="15">15</option>
                                                                <option value="20">20</option>
                                                                <option value="25">25</option>
                                                                <option value="30">30</option>
                                                                <option value="35">35</option>
                                                                <option value="40">40</option>
                                                                <option value="45">45</option>
                                                                <option value="50">50</option>
                                                                <option value="55">55</option>
                                                            </select>
                                                            <br>
                                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TechSixTimeD" Display="Dynamic" ErrorMessage="请选择下限日期"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TechSixTimeT_H" Display="Dynamic" ErrorMessage="请选择下限小时"></asp:RequiredFieldValidator>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TechSixTimeT_M" Display="Dynamic" ErrorMessage="请选择下限分钟"></asp:RequiredFieldValidator>
                                                            <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="CV" ControlToValidate="TechSixTimeT_M" ErrorMessage="上限时间必须小于下限时间" ValidateEmptyText="True"></asp:CustomValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="leftContent">
                                                            故障描述：
                                                        </td>
                                                        <td class="RightContent">
                                                            <asp:TextBox ID="Content_Tech_Online" runat="server" Width="372px" CssClass="face" Text="" Height="65px" TextMode="MultiLine"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="Content_Tech_Online" Display="Dynamic" ErrorMessage="请填写故障描述"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="leftContent">
                                                            处理过程：
                                                        </td>
                                                        <td class="RightContent">
                                                            <asp:TextBox ID="Content_Tech" runat="server" Width="372px" CssClass="face" Text="" Height="65px" TextMode="MultiLine"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="Content_Tech" Display="Dynamic" ErrorMessage="请填写处理过程"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="leftContent">
                                                            处理结果：
                                                        </td>
                                                        <td class="RightContent">
                                                            <asp:TextBox ID="Content_Tech_Result" runat="server" Width="372px" CssClass="face" Text="" Height="65px" TextMode="MultiLine"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="Content_Tech_Result" Display="Dynamic" ErrorMessage="请填写处理结果"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <% if (Convert.ToInt32(Session["UserType"]) == 2 || Convert.ToInt32(Session["UserType"]) == 4)
                                   { %>
                                <tr>
                                    <td class="leftContent">
                                        考勤状态：
                                    </td>
                                    <td class="RightContent">
                                        <asp:DropDownList ID="txt_HuiDan" runat="server">
                                            <asp:ListItem Value="正常">正常</asp:ListItem>
                                            <asp:ListItem Value="迟到">迟到</asp:ListItem>
                                        </asp:DropDownList>
                                        <br>
                                        注:选中任务状态为"完成"或"未完成",且由"正常"->"迟到"会自动增加考勤记录
                                    </td>
                                </tr>
                                <% } %>
                                <tr>
                                    <td class="leftContent">
                                        交通费：
                                    </td>
                                    <td class="RightContent">
                                        <% if (Convert.ToInt32(Session["UserType"]) == 2 || Convert.ToInt32(Session["UserType"]) == 4)
                                           { %>
                                        <asp:TextBox ID="txt_JTfee" runat="server" Width="70px" CssClass="face" Text=""></asp:TextBox>
                                        <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txt_JTfee" ErrorMessage="单价是大于0的数字" Operator="GreaterThan" Type="Currency" ValueToCompare="0"></asp:CompareValidator>
                                        <% }
                                           else
                                           { %><%= WebUtility.DecimalToString(news.JTfee) %><% } %>
                                    </td>
                                </tr>
                                <% if (Convert.ToInt32(Session["UserType"]) == 4)
                                   { %>
                                <tr>
                                    <td class="leftContent">
                                        服务单数变更：
                                    </td>
                                    <td class="RightContent">
                                        <asp:DropDownList ID="txt_ServiceNum" runat="server">
                                            <asp:ListItem Value="0" Selected>0</asp:ListItem>
                                            <asp:ListItem Value="1">1</asp:ListItem>
                                            <asp:ListItem Value="2">2</asp:ListItem>
                                            <asp:ListItem Value="3">3</asp:ListItem>
                                            <asp:ListItem Value="4">4</asp:ListItem>
                                            <asp:ListItem Value="5">5</asp:ListItem>
                                            <asp:ListItem Value="6">6</asp:ListItem>
                                            <asp:ListItem Value="7">7</asp:ListItem>
                                            <asp:ListItem Value="8">8</asp:ListItem>
                                            <asp:ListItem Value="9">9</asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <% } %>
                                <tr>
                                    <td class="leftContent" valign="top" style="padding-top: 20px; height: 30px;">
                                    </td>
                                    <td class="RightContent">
                                        <asp:Button ID="btnSubmit" runat="server" Text="确 定" CssClass="button" OnClick="btnSubmit_Click" OnClientClick=" if ( CheckClientValidate() ) { return SelectFinish(); }" />
                                        &nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重 置" name="btnReset" class="button">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
